package cn.com.onlinetool.jt809.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

/**
 * 车辆信息表
 *
 * @author wangxiaogang
 * @date 2021-11-01 15:56:39
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("tgps_data")
@AllArgsConstructor
@NoArgsConstructor
public class GPSData implements Serializable {
    private static final long serialVersionUID=1L;

    @TableId(type = IdType.INPUT)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer id;

    @TableField(value = "car_id")
    private String carId;

    @TableField(value = "acc")
    private String acc;

    @TableField(value = "speed")
    private Integer speed;

    @TableField(value = "direction")
    private Integer direction;

    @TableField(value = "location")
    private Integer location;

    @TableField(value = "height")
    private Integer height;

    @TableField(value = "lat")
    private Double lat;

    @TableField(value = "lng")
    private Double lng;

    @TableField(value = "gpstime")
    private String gpsTime;

    @TableField(value = "systime")
    private String sysTime;
}
